package org.destinyshine.cricket.container;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import java.util.Enumeration;

/**
 * Created by jianyu.liu@hnlark.com on 2016/7/3.
 *
 * @author jianyu.liu@hnlark.com
 */
public class ServletWrapperFacade implements ServletConfig {

    private final ServletWrapper internal;

    public ServletWrapperFacade(ServletWrapper internal) {
        this.internal = internal;
    }

    @Override
    public String getServletName() {
        return internal.getServletName();
    }

    @Override
    public ServletContext getServletContext() {
        return null;
    }

    @Override
    public String getInitParameter(String s) {
        return null;
    }

    @Override
    public Enumeration getInitParameterNames() {
        return null;
    }
}
